<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>三维空间</title>
		<style type="text/css">
			body{
				/* 透视 */
				perspective: 1000px;
				perspective-origin: 50%,50%;
			}
			div{
				width: 300px;
				height: 300px;
			}
			.box1{
				/* 3D空间效果 */
				transform-style: preserve-3d;
				margin: 100px auto;
				background-color: aqua;
				transform: rotateY(45deg);
			}
			.box2{
				background-color: plum;
				transform: rotateX(60deg);
			}
		</style>
	</head>
	<body>
		<div class="box1">
			<div class="box2"></div>
		</div>
	</body>
</html>
